<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
	<script type="text/javascript">
		//用于计数的变量
		var a=1;
		//用于记录结果的变量
		var sum=0;
		do{
			document.write(sum+"+");
			document.write(a+"=");
			sum+=a;
			a++;
			document.write(sum+"<br />");
		}while (a<=100);
	</script>
</html>